package com.casa.gwtproject.dao.generic.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.casa.gwtproject.dao.generic.GenericDao;

/**
 * Implementation of generic DAO for Hibernate ORM DAOs
 * @author JuanLuis
 *
 * @param <Entity> hibernate entity
 * @param <PK> primary key
 */
public abstract class GenericHibernateDao<Entity extends Serializable, PK extends Serializable> extends HibernateDaoSupport implements GenericDao <Entity, PK>{

	public void save(Entity item) {
		getHibernateTemplate().save(item);
	}

	public void update(Entity item) {
		getHibernateTemplate().update(item);
		
	}

	public void delete(Entity item) {
		getHibernateTemplate().delete(item);
	}

	public List<Entity> find(Entity item) {
		// TODO Auto-generated method stub
		return null;
	}

}
